#ifndef _CMDTASK_H_
#define _CMDTASK_H_

#include<my_header.h>
#include<string.h>
#include<unistd.h>
#include<crypt.h>
#include"ThreadPool.h"

//生产盐值
char *salt();
//加密密码
char *encryptPassword(const char *password,const char *salt);

//登录
int loginRequest(int netFd, protocol_client protocol, ThreadPool *pthreadpool);
//注册
int registerNameRequest(int netFd, protocol_client protocol, ThreadPool *pthreadpool);
int registerPasswordRequest(int netFd, protocol_client protocol, ThreadPool *pthreadpool);



#endif 